<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Bill_mdl extends MY_Model {

    public function __construct() {
        parent::__construct();
        $this->table = 'bill';
    }

    /**
     * 重写用户添加
     */
    public function add_bill($uid,$charges,$remarks){
        $data = array(
            'user_id' => $uid,
            'charges' => $charges,
            'remarks' => $remarks,
            'update_time' => $_SERVER['REQUEST_TIME']
        );

        return $this->create($data);
    }
}

/* End of file Bill_mdl.php */
/* Location: ./application/models/Bill_mdl.php */